package com.example.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.entity.PsPoleInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.vo.PsPoleInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yt
 * @since 2024-04-23
 */
public interface PsPoleInfoMapper extends BaseMapper<PsPoleInfo> {

    IPage<PsPoleInfo> findBySearch(@Param("page") Page<PsPoleInfo> page, @Param("psPoleInfoVo") PsPoleInfoVo psPoleInfoVo);
    List<PsPoleInfo> selectAllpoleCodeAsc();

    List<PsPoleInfo> selectAllPoleCodeDesc();

    void updateByLineId(@Param("psPoleInfo") PsPoleInfo psPoleInfo,@Param("lineCode") String lineCode);
}
